package com.earth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.earth.entity.Admin;
import com.earth.mapper.AdminMapper;
import com.earth.service.IAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhengxincheng
 * @since 2024-06-27
 */
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements IAdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public List<Admin> list(){
        return this.adminMapper.selectList(new QueryWrapper<>());
    }
}
